// import {PageContainer} from '@ant-design/pro-components'
import { Image, Button, Popconfirm, message } from 'antd';
import login from './login.png'


const HomePage: React.FC = () => {

    const logoutHandler=()=>{
        sessionStorage.removeItem('token')
        window.location.href='/'
    }
    return (
      <>
        {/* <Popconfirm
            title={'你确定要退出登录吗？'}
            onConfirm={() => logoutHandler()}
            onCancel={() => message.info('你取消了操作')}
            placement="topRight"
        >
          <Button
            style={{ left: '90%', backgroundColor: 'shalldowblue' }}
          >
            退出登录
          </Button>
        </Popconfirm> */}
        <Image
          style={{ width: '100%', height: '100%', objectFit: 'cover' }}
          src={login}
          preview={false}
        />
      </>
    );
}

export default HomePage